//
//  AccountInformationViewController.m
//  sys_eric
//
//  Created by mac on 11-11-16.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "AccountInformationViewController.h"
#import "ModifyPswViewController.h"
#import "AccountDetailViewController.h"
#import "CashPayDetailViewController.h"
#import "RechargeDetailViewController.h"
#import "SettlementDetailViewController.h"


@implementation AccountInformationViewController
@synthesize modifyPswViewController;
@synthesize accountDetailViewController;
@synthesize cashPayDetailViewController;
@synthesize rechargeDetailViewController;
@synthesize settlementDetailViewController;


-(IBAction)enterModifyPswView:(id)sender
{
    ModifyPswViewController *modify=[[ModifyPswViewController alloc]init];
    self.modifyPswViewController=modify;
    [self.navigationController pushViewController:modify animated:YES];
    [modify release];
    
}

-(IBAction)enterAccountDetailView:(id)sender
{ 
    AccountDetailViewController *account=[[AccountDetailViewController alloc]init];
    self.accountDetailViewController=account;
    [self.navigationController pushViewController:account animated:YES];
    [account release];
}

-(IBAction)enterCashView:(id)sender
{
    CashPayDetailViewController *cash=[[CashPayDetailViewController alloc]init];
    self.cashPayDetailViewController=cash;
    [self.navigationController pushViewController:cash animated:YES];
    [cash release];
}

-(IBAction)enterRechargeView:(id)sender
{
    RechargeDetailViewController *recharge=[[RechargeDetailViewController alloc]init];
    self.rechargeDetailViewController=recharge;
    [self.navigationController pushViewController:recharge animated:YES];
    [recharge release];
}

-(IBAction)enterSettlementView:(id)sender
{
    SettlementDetailViewController *settlement=[[SettlementDetailViewController alloc]init];
    self.settlementDetailViewController=settlement;
    [self.navigationController pushViewController:settlement animated:YES];
    [settlement release];
}


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)dealloc
{
    [modifyPswViewController release];
    [accountDetailViewController release];
    [cashPayDetailViewController release];
    [rechargeDetailViewController release];
    [settlementDetailViewController release];
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    self.modifyPswViewController=nil;
    self.accountDetailViewController=nil;
    self.cashPayDetailViewController=nil;
    self.rechargeDetailViewController=nil;
    self.settlementDetailViewController=nil;
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
